package com.qinglei.recoup.system.dao;

import com.qinglei.recoup.system.domain.NurseOnline;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author syp
 */
public interface NurseOnlineMapper extends BaseMapper<NurseOnline> {

    /**
     * 根据日期查询 包括开始日期 不包括结束日期
     * @param userId
     * @param startDate
     * @param endDate
     * @return
     */
    List<NurseOnline> selectListByDay(Long userId, LocalDate startDate, LocalDate endDate);

    NurseOnline selectOnline(@Param("userId") List<Integer> userId);

    LocalDate selectMinDateByUserIds(@Param("userId")List<Integer> bedIdsByUser);

}
